<?php

/**
 * start actions.
 *
 * @package    sfWixet
 * @subpackage start
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class startActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
  	if($this->getUser()->hasCredential("person")){
  		$this->setLayout('person');
  	}else{
  		$this->setLayout('site');
  	}
  	/*$this->dispatcher->notify(new sfEvent($this, 'application.log', array("Lanzador OK")));
  	$this->dispatcher->connect('user.new_photo', array('sfGuardUser', 'friendRequest'));
  	
  	$user = new sfGuardUser();
  	$user->setId(999);
  	$this->dispatcher->notify(new sfEvent($this, 'user.new_photo', array("receiver"=>$user)));
  	*/
    //$this->forward('default', 'module');
    //$photo = new Photo();
	//echo "dentrooo";
	//$this->getUser()->signOut();
  }
}
